package src.Business.BaseDataObject;

import java.util.Date;

import src.Business.Enums.Action;
import src.Business.Enums.TransactionType;

/**
 * @author 602705
 * This class represents all of the data that will be associated with a transaction.
 */
public class TransactionData
{
	private int 						transactionID;
	private String 						transactionXML;
	private Date						transactionDate;
	private Enum<Action>   				action;
	private Enum<TransactionType>		transactionType;
	
	/**
	 * The default constructor for TransactionData. 
	 */
	public TransactionData()
	{
		
	}
	
	/**
	 * @param transactionID
	 * @param transactionXML
	 * @param transactionDate
	 * @param action
	 * @param transactionType
	 * 
	 * A constructor for TransactionData that sets all of the parameters passed in.
	 */
	public TransactionData(int transactionID, String transactionXML,
			Date transactionDate, Enum<Action> action, Enum<TransactionType> transactionType)
	{
		this.transactionID = transactionID;
		this.transactionXML = transactionXML;
		this.transactionDate = transactionDate;
		this.action = action;
		this.transactionType = transactionType;
	}
	
	public int getTransactionID()
	{
		return transactionID;
	}

	public void setTransactionID(int transactionID)
	{
		this.transactionID = transactionID;
	}

	public String getTransactionXML()
	{
		return transactionXML;
	}

	public void setTransactionXML(String transactionXML)
	{
		this.transactionXML = transactionXML;
	}

	public Date getTransactionDate()
	{
		return transactionDate;
	}

	public void setTransactionDate(Date transactionDate)
	{
		this.transactionDate = transactionDate;
	}

	public Enum<Action> getAction()
	{
		return action;
	}

	public void setAction(Enum<Action> action)
	{
		this.action = action;
	}

	public Enum<TransactionType> getTransactionType()
	{
		return transactionType;
	}

	public void setTransactionType(Enum<TransactionType> transactionType)
	{
		this.transactionType = transactionType;
	}
}
